﻿@model SoftHotel.Models.DetalleReservaEv

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

 <link href="@Url.Content("~/Content/themes/base/jquery.ui.core.css")"  
        rel="stylesheet" type="text/css" /> 
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.datepicker.css")"  
        rel="stylesheet"  type="text/css" /> 
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")"  
        rel="stylesheet" type="text/css" /> 
 
    <script src="@Url.Content("~/Scripts/jquery.ui.core.js")"  
        type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/jquery.ui.datepicker.js")"  
        type="text/javascript"></script> 
        <script src="@Url.Content("~/Scripts/jquery.validate.js")"  
        type="text/javascript"></script> 
    


<script type="text/javascript">
    $(document).ready(function () {

       
    
        $('.date').datepicker
        ({
           
            dayNamesMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"], 
            monthNames: ["January", "February", "March", "April", "Mayo", "Junio", "Julio", "August", "September", "October", "November", "December"],
            dateFormat: 'dd/mm/yy',
            minDate: 0 
          
        });
    });
</script>



@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>

        <legend>Detalle de Reserva</legend>
          @Html.HiddenFor(model => model.idReserva)
         
         <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Ambiente: </td>
	  <td> 
          
           @Html.EditorFor(model => model.idAmbiente)
            @Html.ValidationMessageFor(model => model.idAmbiente)
        
          <img src="/Content/Images/buscar.png" alt="0" title="Buscar" id="" border="0" height="16" width="16"  onclick="" />

          
      </td>
	  
	</tr><tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Fecha</td>
	  <td><div class="editor-field">
               @Html.TextBox("fecha", String.Format("{0:d}", (string)Model.fecha.ToShortDateString()), new { @class = "date" })
           @Html.ValidationMessageFor(model => model.fecha)
        </div> </td>
	  
	</tr>
	<tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Hora Inicio  00:00:00 PM/AM</td>
	  <td><div class="editor-field">
           @Html.EditorFor(model => model.hora_ini)
            @Html.ValidationMessageFor(model => model.hora_ini)
        </div></td>
	  <td style="font-weight: bold;">&nbsp;</td>
	  <td>&nbsp;</td>
	</tr>
	<tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Hora Fin  00:00:00 PM/AM</td>
	  <td> <div class="editor-field">       @Html.EditorFor(model => model.hora_fin)        @Html.ValidationMessageFor(model => model.hora_fin)      </div>       </td>
	  
	</tr>
	
</tbody></table>



       
        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>



}

   @using (Html.BeginForm("Details","ReservaEv",FormMethod.Get))
{
        
        <p>
            @Html.HiddenFor(model => model.idReserva)
    
            <input type="submit" value="Volver" />
        
      
</p> }
